﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ARchGL.Platform.Electrocar.Core
{
    /// <summary>
    /// 项目成员 数据实体
    /// </summary>
    [Table("ev_projectusers")]
    public class ProjectUsers : Entity<Guid>, IMustHaveTenant, IHasCreationTime, ICreationAudited
    {
        /// <summary>
        /// 项目标识
        /// </summary>
        public Guid ProjectId { get; set; }
        /// <summary>
        /// 用户标识（long）
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 部门标识（long）
        /// </summary>
        public long OrganizationId { get; set; }
        /// <summary>
        /// 角色：1技术员，2查看
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 创建用户标识
        /// </summary>
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 主机/租户
        /// </summary>
        public int TenantId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
    }
}
